import request from '@/utils/request'

// 查询历史业绩列表
export function listGpSecurityHistoricalPerformance(query) {
  return request({
    url: '/performance/gpSecurityHistoricalPerformance/list',
    method: 'get',
    params: query
  })
}

// 查询历史业绩详细
export function getGpSecurityHistoricalPerformance(id) {
  return request({
    url: '/performance/gpSecurityHistoricalPerformance/' + id,
    method: 'get'
  })
}

// 根据基金管理人Id查询历史业绩详细
export function getPerformanceByGpSecurityId(gpSecurityId) {
  return request({
    url: '/performance/gpSecurityHistoricalPerformance/getByGpSecurityId/' + gpSecurityId,
    method: 'get'
  })
}
// 保存历史业绩
export function saveGpSecurityHistoricalPerformance(data) {
  return request({
    url: '/performance/gpSecurityHistoricalPerformance/save',
    method: 'post',
    data: data
  })
}

// 删除历史业绩
export function delGpSecurityHistoricalPerformance(id) {
  return request({
    url: '/performance/gpSecurityHistoricalPerformance/' + id,
    method: 'delete'
  })
}

// 导出历史业绩
export function exportGpSecurityHistoricalPerformance(query) {
  return request({
    url: '/performance/gpSecurityHistoricalPerformance/export',
    method: 'get',
    params: query
  })
}
